﻿namespace Quail
{
    /// <summary>
    /// Simple data adapter implementing the ConnectionString parameter
    /// </summary>
    /// <typeparam name="TShell"></typeparam>
    public class SimpleDataAdapterImpl<TShell> : SimpleDataAdapter<TShell>
        where TShell : ITestShell
    {
        private readonly string _conStr;

        ///<summary>
        ///</summary>
        ///<param name="shell"></param>
        ///<param name="connectionStr"></param>
        public SimpleDataAdapterImpl(TShell shell, string connectionStr)
            :base(shell)
        {
            _conStr = connectionStr;
        }

        public override string ConnectionString { get { return _conStr; } }
    }
}
